package cn.wgoodq.utils;

import cn.wgoodq.domain.Result;

/**
 * Created by OuKyou on 2017/4/11.
 */
public class ResultUtil {
    public static <T> Result success(T t) {
        return new Result(true, t, "");
    }

    public static Result success() {
        return null;
    }

    public static Result error(String msg) {
        return new Result(false, null, msg);
    }
}